<template>
    <Button size="small" @click="handleOpen">图片</Button>
</template>

<script setup lang="ts">
import {Button} from "ant-design-vue";
import {uploadFile} from "@/utils";

const handleOpen = () => {
    uploadFile({
        onChange: file => {
            console.log(file);
        },
    });
};
</script>
